package com.shiro.demo0929.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date 2020/9/29 19:40
 * 主要用来认证，并没有什么逻辑
 */
@RestController
public class HelloController {


    @RequestMapping("/")
    public String index(){
        return "都可以访问";
    }

    @RequestMapping("/hello")
    public String hello(){
        return "需要认证才可以访问";
    }

    @RequestMapping("/user")
    public String userList(){
        return "U need user Authentication can find here";
    }


    @RequestMapping("/admin")
    public String adminList(){
        return "U need admin Authentication can find here";
    }

}
